package com.yx.changdao.service.impl;

import com.yx.changdao.common.entity.NoWorkday;
import com.yx.changdao.common.mapper.NoWorkdayMapper;
import com.yx.changdao.service.NoWorkdayService;
import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

/**
 * @Description: <br/>
 * 非工作日表
 * <p>
 * <br/>
 * @Auther: walter
 * @create 2020/04/30 10:45
 */
@Service
public class NoWorkdayServiceImpl extends ServiceImpl<NoWorkdayMapper, NoWorkday> implements NoWorkdayService {

    @Override
    public boolean isNotWork(String date) {
        return baseMapper.selectById(date) != null;
    }
}
